package com.gitee.zhanyao.codebase.java.webservice.server.service.impl;

import com.gitee.zhanyao.codebase.java.webservice.server.service.HelloWS;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.jws.WebService;

/**
 * SEI接口实现
 * targetNamespace是当前类实现接口所在包名称的反序（PS：加上反斜线），
 * endpointInterface是当前需要实现接口的全称
 */
@WebService(targetNamespace = "http://service.server.webservice.java.codebase.zhanyao.gitee.com/",
        endpointInterface = "com.gitee.zhanyao.codebase.java.webservice.server.service.HelloWS")
public class HelloWSImpl implements HelloWS {

    private static final Logger logger = LoggerFactory.getLogger(HelloWSImpl.class);

    @Override
    public String sayHello(String name) {
        logger.info("WS Server 接受到名字:{}", name);
        return "Hello " + name;
    }

}
